package com.example.vaccine.entity;

import lombok.Data;

import java.util.List;


public class Menu {
    private String name;
    private String path;
    private String title;
    private String icon;
    private boolean top;
    private String component;
    private List<Menu> childMenus;

    // 无参构造器
    public Menu() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public boolean isTop() {
        return top;
    }

    public void setTop(boolean top) {
        this.top = top;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public List<Menu> getChildMenus() {
        return childMenus;
    }

    public void setChildMenus(List<Menu> childMenus) {
        this.childMenus = childMenus;
    }

    // 带全部字段的构造器（确保参数顺序和类型匹配）
    public Menu(String name, String path, String title, String icon, boolean top, String component, List<Menu> childMenus) {
        this.name = name;
        this.path = path;
        this.title = title;
        this.icon = icon;
        this.top = top;
        this.component = component;
        this.childMenus = childMenus;
    }

    // 省略 getter 和 setter
}
